Finally getting around to checkin per Havoc. This is the fix for bug
authorMike Kestner <mkestner@ameritech.net>
Sun, 18 Mar 2001 22:08:38 +0000 (22:08 +0000)
committerMike Kestner <mkestner@src.gnome.org>
Sun, 18 Mar 2001 22:08:38 +0000 (22:08 +0000)
Finally getting around to checkin per Havoc.  This is the fix for bug 51782.

2001-03-18  Mike Kestner  <mkestner@ameritech.net>

* make-inline-pixbuf.c (main): Added logic to remove output when
failures occur.

gdk-pixbuf/ChangeLog
gdk-pixbuf/make-inline-pixbuf.c

index 5cf930a8177911e70ec3e811f174b9350c20eecd..feb54700ec466975b6030e8d53cfea9eec5c44de 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-18  Mike Kestner  <mkestner@ameritech.net>
+
+       * make-inline-pixbuf.c (main): Added logic to remove output when
+       failures occur.
+
 2001-03-14  Havoc Pennington  <hp@redhat.com>
 
        * Makefile.am (gdk-pixbuf-marshal.c): Use different temporary file
index d0e41a24a1f5fffd60fcb2565234e55994e7e101..65e1ed6f2dd70f8cc0bcd2d436f4e620dbc45366 100644 (file)
@@ -150,6 +150,7 @@ main (int argc, char **argv)
 {
   gboolean ext_symbols = FALSE;
   FILE *outfile;
+  gchar *outfilename;
   int i;
   
   g_type_init (0);
@@ -175,6 +176,7 @@ main (int argc, char **argv)
       exit (1);
     }
 
+  outfilename = argv[i];
   ++i;
 
   fputs ("/* This file was automatically generated by the make-inline-pixbuf program.\n"
@@ -198,7 +200,8 @@ main (int argc, char **argv)
       if (pixbuf == NULL)
         {
           fprintf (stderr, "%s\n", error->message);
-
+          fclose (outfile);
+          remove (outfilename);
           exit (1);
         }